<?exit?>
<!--{template header}-->
<!--{eval $ads = getad('system', 'bbs', '1'); }-->

<div class="wrap">
  <h2><a title="$_SCONFIG[sitename]" href="{S_URL}/"><img border="0" alt="$_SCONFIG[sitename]" src="http://bbs.shanhuhua.com/templates/uchome/images/logo.gif"/></a></h2>
  <div id="menu">
    <ul>
      <li class="current"><a hidefocus="true" href="http://www.shanhuhua.com">首页</a></li>
      <li><a hidefocus="true" href="http://u.shanhuhua.com">空间</a></li>
      <li><a hidefocus="true" href="http://bbs.shanhuhua.com">论坛</a></li>
      <li><a hidefocus="true" href="http://www.shanhuhua.com/cp.php?ac=news&op=add&type=news">投稿</a></li>
    </ul>
  </div>
</div>
</div>
<div id="pagebody">
  <div id="pagebody_extbg">
    <div id="nav">
      <ul class="main_nav" style="display:none">
        <!--{if empty($_SCONFIG['defaultchannel'])}-->
        <li><a href="{S_URL}/index.php"><span>首页</span></a></li>
        <!--{/if}-->
        <!--{loop $channels['menus'] $key $value}-->
        <li 
        <!--{if $key == 'bbs' }-->
        class="current"
        <!--{/if}-->
        ><a href="$value[url]"><span>$value[name]</span></a>
        </li>
        <!--{/loop}-->
      </ul>
      <div class="ext_nav_bg">
        <div class="ext_nav">
          <!--{eval $dot = '|'}-->
          <!--{eval $total = count($forumarr)}-->
          <!--{eval $i = 1;}-->
          <!--{loop $forumarr $value}-->
          <li><a href="$value[url]">$value[name]</a>
            <!--{if $total != $i}-->
            &nbsp;$dot&nbsp;
            <!--{/if}-->
          </li>
          <!--{eval $i++;}-->
          <!--{/loop}-->
        </div>
      </div>
    </div>
    <div class="column">
      <!--{if !empty($ads['pageheadad']) }-->
      <div class="ad_header">$ads[pageheadad]</div>
      <!--{/if}-->
      <div id="supehot">
        <!--图片附件-->
        <!--{block name="bbsattachment" parameter="sql/SELECT%20%2A%20from%20shh_attachments%20where%20isimage%20%3D%201%20order%20by%20aid%20desc/limit/0,4/cachetime/3600/cachename/picthread/tpl/data"}-->
        <div class="box_l" id="index_focus_turn">
          <!--{if !empty($_SBLOCK['picthread'])}-->
          <div id="index_focus_turn_pic">
            <div id="index_focus_turn_picList" style="left:0; top:0;">
              <ul>
                <!--{loop $_SBLOCK['picthread'] $pkey $pvalue}-->
                <li><a href="$pvalue[url]" target="_blank"><img src="$pvalue['attachment']" alt="" /></a></li>
                <!--{/loop}-->
              </ul>
            </div>
            <div id="index_focus_turn_opvdiv"></div>
            <div id="index_focus_turn_tx">
              <ul>
                <!--{eval $i = 0}-->
                <!--{loop $_SBLOCK['picthread'] $key $value}-->
                <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
                <li class="$current">$value[subject]</li>
                <!--{eval $i++}-->
                <!--{/loop}-->
              </ul>
            </div>
          </div>
          <div id="index_focus_turn_btn">
            <ul>
              <!--{eval $i = 0}-->
              <!--{loop $_SBLOCK['picthread'] $bkey $bvalue}-->
              <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
              <li class="$current"><img src="$bvalue[attachment]" alt="" /></li>
              <!--{eval $i++}-->
              <!--{/loop}-->
            </ul>
          </div>
          <!--{/if}-->
        </div>
        <div class="box_r">
          <div class="supehot_txbox">
            <div id="tab_supehot" class="supebbs_txbox_caption">
              <ul>
                <li class="current"><em onclick="secBoard('tab_supehot','toplist',1)">论坛新帖</em></li>
                <li class="normal"><em onclick="secBoard('tab_supehot','toplist',2, 'bbs_week_0')">本周热点</em></li>
                <li class="normal"><em onclick="secBoard('tab_supehot','toplist',3, 'bbs_moon_0')">本月热点</em></li>
              </ul>
            </div>
            <div class="supehot_txbox_content">
              <!--最新帖子-->
              <!--{block name="bbsthread" parameter="order/dateline DESC/limit/0,9/cachetime/21400/cachename/ratehot/tpl/data"}-->
              <ul id="toplist_1" class="current">
                <!--{loop $_SBLOCK['ratehot'] $value}-->
                <li><span class="box_r">#date('m.d', $value['dateline'])#</span><a href="$value[url]" target="_blank">$value[subject]</a></li>
                <!--{/loop}-->
              </ul>
              <!--热门帖子列表(一周)-->
              <ul id="toplist_2" class="normal">
              </ul>
              <!--热门帖子列表(一月)-->
              <ul id="toplist_3" class="normal">
              </ul>
            </div>
          </div>
          <!--新帖，本周，本月选项卡end-->
        </div>
      </div>
      <!--supehot end	-->
      <div class="box_l col_710">
        <div class="news_glo_module news_pic_list">
          <!--{block name="bbsattachment" parameter="sql/SELECT%20%2A%20from%20shh_attachments%20where%20isimage%20%3D%201%20order%20by%20aid%20desc/limit/0,6/cachetime/3600/cachename/picthread/tpl/data"}-->
          <div class="global_caption">
            <h3>图片主题</h3>
          </div>
          <ul class="bbs_h_style">
            <!--{loop $_SBLOCK['picthread'] $value}-->
            <li><a href="$value[url]" target="_blank"><img src="$value[attachment]" alt="$value[subject]" /></a></li>
            <!--{/loop}-->
          </ul>
        </div>
        <!--{if !empty($ads['pagecenterad'])}-->
        <div class="ad_mid">$ads['pagecenterad']</div>
        <!--{/if}-->
        <div class="news_box_list">
          <!--各板块最新列表-->
          <!--{eval $i = 1;}-->
          <!--{loop $forumarr $ckey $cat}-->
          <!--{eval $ctime=3800+30*$ckey;}-->
          <!--{eval $cachetime=38000+30*$ckey;}-->
          <!--{block name="bbsattachment" parameter="t_fid/$cat[fid]/filetype/image/t_lastpost/2592000/order/t.views DESC/limit/0,5/cachetime/$cachetime/cachename/hotpicthread/tpl/data"}-->
          <div class="news_glo_module" 
          <!--{if ($i % 2) == 0}-->
          style="margin-left:6px;"
          <!--{/if}-->
          >
          <div class="global_caption">
            <h3>$cat[name]</h3>
            <a href="#action/forumdisplay/fid/$cat[fid]#">更多&gt;&gt;</a></div>
          <!--{if !empty($_SBLOCK['hotpicthread'])}-->
          <div class="news_box_hot"> <a href="$_SBLOCK['hotpicthread'][0][url]" target="_blank"><img align="left" src="$_SBLOCK['hotpicthread'][0][attachment]" alt="$_SBLOCK['hotpicthread'][0][subject]" /></a>
            <ul>
              <!--{eval $tmptid = ''}-->
              <!--{loop $_SBLOCK['hotpicthread'] $value}-->
              <!--{if empty($tmptid) || $tmptid != $value['tid']}-->
              <!--{eval $tmptid = $value['tid']}-->
              <li><a href="$value[url]" target="_blank">$value[subject]</a></li>
              <!--{elseif $tmptid == $value['tid'] }-->
              <!--{eval continue;}-->
              <!--{/if}-->
              <!--{/loop}-->
            </ul>
          </div>
          <!--{block name="bbsthread" parameter="fid/$cat[fid]/order/dateline DESC/limit/0,8/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
          <!--{else}-->
          <!--{block name="bbsthread" parameter="fid/$cat[fid]/order/dateline DESC/limit/0,13/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
          <!--{/if}-->
          <div class="news_box_content">
            <ul>
              <!--{loop $_SBLOCK['threadlist'] $value}-->
              <li><span class="box_r">#date("m.d", $value["dateline"])#</span><a href="$value[url]" target="_blank">$value[subject]</a></li>
              <!--{/loop}-->
            </ul>
          </div>
        </div>
        <!--{eval $i++;}-->
        <!--{/loop}-->
      </div>
    </div>
    <!--col_710主体左侧 end-->
    <div class="box_r col_230">
      <div class="search_bar">
        <h3>站内搜索</h3>
        <ul id="tab_search">
          <li class="current"><em onclick="secBoard('tab_search','searchlist',1)">作者</em></li>
          <li class="normal"><em onclick="secBoard('tab_search','searchlist',2)">标题</em></li>
          <li class="normal"><em onclick="secBoard('tab_search','searchlist',3)">内容</em></li>
        </ul>
        <div class="search_list">
          <div id="searchlist_1" class="current">
            <form action="{S_URL}/batch.search.php" method="post">
              <input id="search1" onclick="javascript:searchtxt('search1')" type="text" class="input_tx" size="22" name="searchkey" value="作者" />
              <input type="submit" class="input_search" name="authorsearchbtn" value="搜索" />
              <br />
              <input type="hidden" value="news" name="type">
              <input type="hidden" name="authorsearch" value="true" />
            </form>
          </div>
          <div id="searchlist_2" class="normal">
            <form action="{S_URL}/batch.search.php" method="post">
              <input id="search2" onclick="javascript:searchtxt('search2')" type="text" class="input_tx" size="22" name="searchkey" value="标题" />
              <input type="submit" class="input_search" name="searchbtn" value="搜索" />
              <br />
              <input type="hidden" value="news" name="type">
              <input type="hidden" name="subjectsearch" value="true" />
            </form>
          </div>
          <div id="searchlist_3" class="normal">
            <form action="{S_URL}/batch.search.php" method="post">
              <input id="search3" onclick="javascript:searchtxt('search3')" type="text" class="input_tx" size="22" name="searchkey" value="内容" />
              <input type="submit" class="input_search" name="messagesearchbtn" value="搜索" />
              <br />
              <input type="hidden" value="news" name="type">
              <input type="hidden" name="messagesearch" value="true" />
            </form>
          </div>
        </div>
      </div>
      <!-- 论坛公告 -->
      <!--{block name="bbsannouncement" parameter="order/displayorder/limit/0,1/cachetime/96400/cachename/announcelist/tpl/data"}-->
      <div class="bbs_board"><span>公告:
        <!--{if empty($_SBLOCK['announcelist'])}-->
        暂时没有公告
        <!--{else}-->
        <!--{loop $_SBLOCK['announcelist'] $ikey $value}-->
        <a href="$value[url]" target="_blank">$value[subject]</a>
        <!--{/loop}-->
        <!--{/if}-->
        </span></div>
      <!--板块根据帖子数排行-->
      <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/posts DESC/limit/0,10/cachetime/14400/cachename/hotforums/tpl/data"}-->
      <div class="newsside_glo_module global_top10">
        <h3>版块排行</h3>
        <div class="newsside_glo_content supebbs_top10">
          <ul>
            <!--{loop $_SBLOCK['hotforums'] $value}-->
            <li><span class="num">$value[posts]</span><a href="$value[url]">$value[name]</a></li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
      <!--最新更新帖子-->
      <!--{block name="bbsthread" parameter="order/lastpost DESC/limit/0,10/subjectlen/30/subjectdot/1/cachetime/11460/cachename/newpost/tpl/data"}-->
      <!--{if $_SBLOCK['newpost']}-->
      <div class="newsside_glo_module global_top10">
        <h3>最新评论</h3>
        <div class="newsside_glo_content supebbs_top10">
          <ul>
            <!--{loop $_SBLOCK['newpost'] $value}-->
            <li><a href="$value[url]" target="_blank">$value[subject]</a></li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
      <!--{/if}-->
      <!--{block name="bbsmember" parameter="order/m.oltime DESC/limit/0,10/cachetime/86400/cachename/toponline/tpl/data"}-->
      <div class="newsside_glo_module global_top10">
        <h3>在线排行</h3>
        <div class="newsside_glo_content supebbs_top10">
          <ul>
            <!--{loop $_SBLOCK['toponline'] $value}-->
            <li><span class="num">$value[oltime]小时</span><a href="$value[url]" target="_blank">$value[username]</a></li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
      <!--{block name="bbsmember" parameter="order/m.posts DESC/limit/0,10/cachetime/86400/cachename/hotmembers/tpl/data"}-->
      <div class="newsside_glo_module global_top10">
        <h3>发贴排行</h3>
        <div class="newsside_glo_content supebbs_top10">
          <ul>
            <!--{loop $_SBLOCK['hotmembers'] $value}-->
            <li><span class="num">$value[posts]</span><a href="$value[url]" target="_blank">$value[username]</a></li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
    </div>
    <!--col_235主体右侧 end-->
    <div class="clear"></div>
    <!--{if !empty($ads['pagefootad'])}-->
    <div class="ad_footer">$ads['pagefootad']</div>
    <!--{/if}-->
  </div>
  <!--column end-->
</div>
</div>
<!--pagebody end-->
<!--{if !empty($ads['pagemovead']) || !empty($ads['pageoutad'])}-->
<!--{if !empty($ads['pagemovead'])}-->
<div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  <div style="position: absolute; left: 6px; top: 6px;"> $ads[pagemovead] <br />
    <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');"> </div>
  <div style="position: absolute; right: 6px; top: 6px;"> $ads[pagemovead] <br />
    <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');"> </div>
</div>
<!--{/if}-->
<!--{if !empty($ads['pageoutad'])}-->
<div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px"> $ads[pageoutad] </div>
</div>
<!--{/if}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($ads['pageoutad'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
<!--{/if}-->
<!--{if !empty($ads['pagemovead'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
<!--{/if}-->
</script>
<!--{/if}-->
<!--{if !empty($ads['pageoutindex'])}-->
$ads[pageoutindex]
<!--{/if}-->
<!--{template footer}-->
